<script lang="tsx">
  import { defineComponent } from 'vue';
  import { Tooltip } from 'ant-design-vue';

  export default defineComponent({
    name: 'AnnoAdmin',
    setup() {
      function goToStar() {
        window.open('https://gitee.com/cmeet/anno-admin');
      }

      return () => {
        return (
          <div class="p-1" onClick={goToStar.bind(null, true)}>
            <Tooltip>
              {{
                title: () => 'AnnoAdmin',
                default: () => <span class="text-bold">anno</span>,
              }}
            </Tooltip>
          </div>
        );
      };
    },
  });
</script>
